package com.onec.service.api.enums.error;

/**
 * 业务异常编码表
 *
 * @author ONEC
 */
public enum BusinessErrorEnum {

    /**
     * 系统异常
     */
    SUCCESS("处理成功", 10000),
    /**
     * 系统异常
     */
    PRODUCT_INVAILD("当前产品不存在", 4002),


    /**
     * 系统异常
     */
    BUSINESS_NOT_EXIST("业务编号不存在:", 4001),
    /**
     * 系统异常
     */
    BUSINESS_NOT_AVAILABLE("当前业务已关闭", 4003),

    BUSINESS_TRADE_NUM_NOT_EXIST("交易订单号不存在", 4005),


    BUSINESS_MERCHANT_NOT_EXIST("商户暂未开通该业务", 4006),

    BUSINESS_MERCHANT_AVAILABLE("商户业务已关闭", 4007),
    ;


    private String message;

    private Integer code;

    BusinessErrorEnum(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
